home *** CD-ROM | disk | FTP | other *** search
/ Mac Power 1997 December / MACPOWER-1997-12.ISO.7z / MACPOWER-1997-12.ISO / AMUG / PROGRAMMING / Raven 1.2 Examples.sit / Raven 1.2 Examples / Quill / Source / DialogBoxProxy.h < prev    next >
Text File  |  1997-09-08  |  2KB  |  72 lines

  1. /*
  2.  *  File:       DialogBoxProxy.h
  3.  *  Summary:       A stand in for TDialogBox that behaves better when it's being edited.
  4.  *  Written by: Jesse Jones
  5.  *
  6.  *  Copyright ゥ 1996 Jesse Jones. 
  7.  *    For conditions of distribution and use, see copyright notice in ZTypes.h  
  8.  *
  9.  *  Change History (most recent first):    
  10.  *
  11.  *         <->     9/02/96    JDJ        Created
  12.  */
  13.  
  14. #pragma once
  15.  
  16. #include <ZDialogBox.h>
  17.  
  18. #include "ResourceMap.h"
  19.  
  20.  
  21. // ===================================================================================
  22. //    class CDialogBoxProxy
  23. // ===================================================================================
  24. class CDialogBoxProxy : public TDialogBox {
  25.  
  26.     typedef TDialogBox Inherited;
  27.  
  28. //-----------------------------------
  29. //    Initialization/Destruction
  30. //
  31. public:
  32.     virtual             ~CDialogBoxProxy();
  33.         
  34.                         CDialogBoxProxy(const SDialogBoxInfo& info, MCommander* superCommander);
  35.                         
  36.     static     MReanimatable* Create(MReanimatable* parent);
  37.  
  38. protected:
  39.                         CDialogBoxProxy();
  40.                         
  41. //-----------------------------------
  42. //    TDialogBox API
  43. //
  44. public:
  45.     virtual void         HandleClick(const TMouseEvent& globalEvent, short partCode);
  46.  
  47.     virtual void         SetInfo(const SWindowInfo& info);
  48.  
  49. protected:
  50.     virtual void         Invariant() const;
  51.  
  52.     virtual void         OnOpen();
  53.  
  54.     virtual SWindowAttr GetAttributes() const                        {return mOldAttributes;}
  55.  
  56.     virtual void         OnStreamOut(TOutStream& stream) const;
  57.  
  58.     virtual void         DoClickInGrow(const TMouseEvent& globalEvent);
  59.  
  60. //-----------------------------------
  61. //    MReanimatable API
  62. //
  63. protected:
  64.     virtual void         OnReanimated();
  65.     
  66. //-----------------------------------
  67. //    Member data
  68. //
  69. protected:
  70.     SWindowAttr        mOldAttributes;
  71. };
  72.